package com.lagou.edu.pojo;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
public class RandomStudent {
    @Value("${randomStudent.age}")
    private int age;

    @Value("${randomStudent.des}")
    private String des;


    @Override
    public String toString() {
        return "RandomStudent{" +
                "age=" + age +
                ", des='" + des + '\'' +
                '}';
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }
}
